<?phpnamespace App\Repositories\Api;use App\Models\Hotwords;/** * 热门词汇 */class HotwordsRepository{    public function getPages($filter = [], int $pageSize = 10, $isV = false)    {        $model = Hotwords::query()            ->where($filter)            ->orderBy("sort", "asc")            ->orderBy("id", "desc");        if ($isV) {            return $model->pluck("title")->toArray();        }        return $model->get(['id', 'title'])->toArray();    }}